estimate the area under the graph using rectangles